package com.create.singleton;

/**
 * 饿汉式，容器初始化的时候就去加载（推荐使用这个，简单，线程安全）
 *
 * @author xiaobing
 * @version 1.0
 * @date 2021/9/6 2:20 下午
 */
public class HungrySingleton {

    private static final HungrySingleton hungrySingleton = new HungrySingleton();

    public HungrySingleton() {

    }

    public static HungrySingleton getInstance() {
        return hungrySingleton;
    }
}
